package com.stronger.pettern.Single;

/**
 * 静态内部类写法
 */
public class StaticSingle {
    private static class SingleHolder{
        private static final StaticSingle INSTANCE=new StaticSingle();
    }
    private StaticSingle(){}
    public static final StaticSingle getInstance(){
        return SingleHolder.INSTANCE;
    }
}

